﻿#include<iostream>
#include<bitset>
using namespace std;
int main() {
	unsigned int a{ 0xFFFFFFFF };
	cout << "此时灯光状态：" << bitset<32>(a) << endl;

	cout << "关闭第20栈灯" << endl;
	int b = (a >> 19) - 1;
	cout << "此时灯光状态：" << bitset<32>(b) << endl;
	b = (b << 19) + ((a << (32 - 19)) >> (32 - 19));
	cout << "此时灯光状态：" << bitset<32>(b) << endl;
}